package Reflect;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

/**
 * Created by svenl on 7/17/2017.
 */
public class ToDoItem {

    @ToDo(author = "Sven Anderson", status = ToDo.Status.STARTED, priority = ToDo.Priority.HIGH)
    private String title;    //名称

    @ToDo(author = "Sven2 Aderson", status = ToDo.Status.WAITING, priority = ToDo.Priority.MEDIUM)
    private String desc;   //描述


    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this);
    }
}
